import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";


// 查询震例库
export function listQzLib(query) {
  return request({
    url: '/library/qzabnormal/list',
    method: 'get',
    params: query
  })
}


// 修改台站信息
export function updateQzLib(data) {
  return request({
    url: '/library/qzabnormal',
    method: 'put',
    data: data
  })
}

// 查询一条记录详情
export function getOneQzLib(stationId) {
  return request({
    url: '/library/qzabnormal/' + praseStrEmpty(stationId),
    method: 'get'
  })
}

//add
export function addQzLib(data) {
  return request({
    url: '/library/qzabnormal',
    method: 'post',
    data: data
  })
}

// 删除
export function delQzLib(stationId) {
  return request({
    url: '/library/qzabnormal/' + stationId,
    method: 'delete'
  })
}
